//
//  HistoryRecordModel.m
//  Runone
//
//  Created by runone02 on 16/11/22.
//  Copyright © 2016年 runone. All rights reserved.
//

#import "HistoryRecordModel.h"

@implementation HistoryRecordModel{
    CGFloat _currentCellH ;
}

+ (NSDictionary *)objectClassInArray{
    return @{
             @"IntVclUserInfoList" : @"IntVclUserInfoModel",
             };
}



- (CGFloat)currentCellH {
    if (!_currentCellH) {
        CGSize maxSize   = CGSizeMake([UIScreen mainScreen].bounds.size.width - 60, MAXFLOAT);
        
        NSString *beginStr = [self.Origin stringByAppendingString:@"目的地:"];
        CGFloat destinationH = [beginStr boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:15]} context:nil].size.height;
        
        NSString *endStr   = [self.Destination stringByAppendingString:@"目的地:"];
        CGFloat Origin = [endStr boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:15]} context:nil].size.height;
        
        _currentCellH = 15 + 8 + 5 + 20 + 5 + 15 + 8 + 20 + 5 + destinationH + Origin;
    }
    return _currentCellH ;
}

@end
